package cn.lopr.im.api.dao;

import cn.lopr.im.api.bean.ArticleComment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleCommentMapper {

    int insert(ArticleComment record);

    int insertSelective(ArticleComment record);

    ArticleComment selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ArticleComment record);

    int updateByPrimaryKey(ArticleComment record);

    List<ArticleComment> selectBySelective(ArticleComment articleComment);

    List<ArticleComment> selectByArticleIdAndPage(String articleId, int page, int size);

    List<ArticleComment> selectByCommentParentId(String parentId, int page, int size);

    Integer countArticleCommentByParentId(String parentId);

}